package com.lzx.lizhenxing.user.comtroller;

import com.lzx.lizhenxing.common.vo.CommonResult;
import com.lzx.lizhenxing.user.param.ExpressDePageQueryParam;
import com.lzx.lizhenxing.user.service.ExpressDeliveryService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 快递表(ExpressDelivery)表控制层
 * 所有人的快递
 */
@RestController
@RequestMapping("/all/expressDelivery")
public class ExpressDeliveryController {
    /**
     * 服务对象
     */
    @Resource
    private ExpressDeliveryService expressDeliveryService;

    @PostMapping("/getExDeliveryInfo")
    public CommonResult getExDeliveryInfo(@RequestBody ExpressDePageQueryParam param){
        return CommonResult.success(expressDeliveryService.getExDeliveryInfo(param));
    }

}

